import Vue from 'vue'
import Vuex from 'vuex'
import state from './state.js'
import mutations from './mutations.js'
import actions from './actions.js'
import getters from './getters.js'
import Classify from './module/Classify'
import Note from './module/Note'

Vue.use(Vuex)

export default new Vuex.Store({
    state, //状态对象
    mutations, //包含多个更新state函数的对象
    actions, //包含多个对应时间回调函数的对象
    getters, //包含多个getter计算属性函数的对象
    //模块相关
    modules: {
        Classify,
        Note
    },


})
